package com.zlm.user.emp.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.entity.EmpPositionSignDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: duyufu
 * @Date: 2019/5/7 10:04
 */
@Repository
public interface EmpPositionSignDao extends BaseDao<EmpPositionSignDO> {

    /**
     * 查看职位报名记录
     * @param pracId
     * @param empId
     * @return
     */
    Integer countEmpPositionSign(@Param("pracId") Integer pracId,@Param("empId") Integer empId);

    /**
     * 查看职位报名记录
     * @param empId
     * @return
     */
//    Integer countEmpPositionSign(@Param("empId") Integer empId);

    /**
     * 保存用户报名
     * @param partList
     * @param pracId
     * @param empId
     */
    void saveEmpPositionSign(@Param("partList") List<Integer> partList,@Param("pracId") Integer pracId,@Param("empId") Integer empId);
}
